package org.pfc.porlapatilla.DTO;

/**
 * Response information to send to client
 * @author jorgepolobermudez
 *
 */
public class ResultDTO {
    
    public static final String RESULT_OK = "OK";
    
    public static final String RESULT_ERROR = "ERROR";
    
    public static final String RESULT_ERROR_USER = "Invalid user name";
    
    public static final String RESULT_ERROR_EMAIL = "Invalid user email";
    
    public static final String RESULT_ERROR_PASS = "Invalid user password";
    
    public static final String RESULT_ERROR_STORE = "Error creating the new user";
    
    public static final String RESULT_ERROR_MESSAGE_SEND = "Error sending message";

    /**
     * The response result
     */
    private String result;
    
    /**
     * The response error
     */
    private String error;
    
    public ResultDTO() {
    }
    
    public ResultDTO(String result, String error) {
	this.setResult(result);
	this.setError(error);
    }

    /**
     * @return the result
     */
    public String getResult() {
	return result;
    }

    /**
     * @param result the result to set
     */
    public void setResult(String result) {
	this.result = result;
    }

    /**
     * @return the error
     */
    public String getError() {
	return error;
    }

    /**
     * @param error the error to set
     */
    public void setError(String error) {
	this.error = error;
    }
}
